import request from "@/util/ProRequest.js";

export function getStatus(query) {
    return request({
        url: '/proschedule/getStatus',
        method: 'get',
        params: query
    })
}


export function getProductionOrderAllInfo(id) {
    return request({
        url: '/proschedule/getProductionOrderAllInfo/' + id,
        method: 'get'
    })
}

// 根据产品编号查询对应的工序步骤
export function getAllWorkFlowProcessByProductCode(code) {
    return request({
        url: '/proschedule/getAllWorkFlowProcessByProductCode/' + code,
        method: 'get'
    })
}

export function addProductionTask(data){
    return request({
        url: '/proschedule/addProductionTask',
        method: 'post',
        data
    })
}

export function updateProductionTask(data){
    return request({
        url: '/proschedule/updateProductionTask',
        method: 'put',
        data
    })
}